@use 'sass:math';

@function rem($val) {
  $val: if(math.unit($val) == px, $val, $val * 1px);

  @return calc($val / 16px) * 1rem;
}

@function alphacolor($color, $opacity: 0.6) {
  @return rgba(red($color), green($color), blue($color), $opacity);
}
